package com.xbongbong.paas.service;

import com.xbongbong.paas.toolbox.exception.XbbException;
import com.xbongbong.pro.login.pojo.dto.AutoLoginDTO;
import com.xbongbong.pro.login.pojo.vo.AutoLoginVO;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 登录服务
 * @author kaka
 * @version v1.0
 * @date 2019/4/18 9:34
 * @since v1.0
 */
public interface LoginService {

    /**
     * web端从外部跳转过来进行登录逻辑
     * @param autoLoginDTO 业务DTO
     * @param httpResponse 请求反馈
     * @param request 请求体
     * @return 关联业务VO
     * @throws XbbException 业务异常
     */
    AutoLoginVO autoLogin(AutoLoginDTO autoLoginDTO, HttpServletRequest request, HttpServletResponse httpResponse) throws XbbException;
}
